package cn.z2huo.knowledge.basic.number.integer.format;

/**
 * Integer 输出格式化，sout
 */
class Test {

    public static void main(String[] args) {
        String num = "0001";
        Integer integer = Integer.valueOf(num);
        System.out.println(integer);

        integer++;
        String newNum = String.format("%08d", ++integer);
        System.out.println(newNum);

        System.out.println(String.format("%08d", 99999999));
    }
}
